package p270jp.pxv.android.viewholder;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.recyclerview.widget.RecyclerView;
import java.util.Objects;
import p216hn.DefaultConstructorMarker;
import p270jp.pxv.android.R;
import p270jp.pxv.android.view.NewNovelItemView;
import p314lg.ViewHolderNewNovelItemBinding;
import p325m0.MutabilityOwnership;
import p451qm.NeedsNovelItemDecoration;

/* compiled from: NewNovelFlexibleItemViewHolder.kt */
/* renamed from: jp.pxv.android.viewholder.NewNovelFlexibleItemViewHolder */
/* loaded from: classes2.dex */
public final class NewNovelFlexibleItemViewHolder extends RecyclerView.AbstractC0819y implements NeedsNovelItemDecoration {
    private final ViewHolderNewNovelItemBinding binding;
    public static final Companion Companion = new Companion(null);
    public static final int $stable = 8;

    /* compiled from: NewNovelFlexibleItemViewHolder.kt */
    /* renamed from: jp.pxv.android.viewholder.NewNovelFlexibleItemViewHolder$Companion */
    /* loaded from: classes2.dex */
    public static final class Companion {
        private Companion() {
        }

        public /* synthetic */ Companion(DefaultConstructorMarker eVar) {
            this();
        }

        public final NewNovelFlexibleItemViewHolder createViewHolder(ViewGroup viewGroup) {
            MutabilityOwnership.m3745m(viewGroup, "parent");
            View inflate = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.view_holder_new_novel_item, viewGroup, false);
            Objects.requireNonNull(inflate, "rootView");
            return new NewNovelFlexibleItemViewHolder(new ViewHolderNewNovelItemBinding((NewNovelItemView) inflate));
        }
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public NewNovelFlexibleItemViewHolder(ViewHolderNewNovelItemBinding p7Var) {
        super(p7Var.f22115a);
        MutabilityOwnership.m3745m(p7Var, "binding");
        this.binding = p7Var;
    }

    public final ViewHolderNewNovelItemBinding getBinding() {
        return this.binding;
    }
}
